package com.ruoyi.project.channel.incomeInfo.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 佣金表 income_info
 * 
 * @author CAIN
 * @date 2021-02-04
 */
public class IncomeInfo extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** id */
	private Long incomeId;
	/** 用户id */
	private Long userId;
	/** 订单编号 */
	private Long orderId;
	/** 收益类型 1.自己抢单 2.下级抢单 3.下级任务 4.下级任务 */
	private String type;
	/** 收益金额 */
	private BigDecimal incomeAmount;
	/** 下级代理id */
	private Long childUserId;
	/** 1. 一级代理  2.二级代理 */
	private String childType;
	/** 原始金额 */
	private BigDecimal amount;

	public void setIncomeId(Long incomeId) 
	{
		this.incomeId = incomeId;
	}

	public Long getIncomeId() 
	{
		return incomeId;
	}
	public void setUserId(Long userId) 
	{
		this.userId = userId;
	}

	public Long getUserId() 
	{
		return userId;
	}
	public void setOrderId(Long orderId) 
	{
		this.orderId = orderId;
	}

	public Long getOrderId() 
	{
		return orderId;
	}
	public void setType(String type) 
	{
		this.type = type;
	}

	public String getType() 
	{
		return type;
	}
	public void setIncomeAmount(BigDecimal incomeAmount) 
	{
		this.incomeAmount = incomeAmount;
	}

	public BigDecimal getIncomeAmount() 
	{
		return incomeAmount;
	}
	public void setChildUserId(Long childUserId) 
	{
		this.childUserId = childUserId;
	}

	public Long getChildUserId() 
	{
		return childUserId;
	}
	public void setChildType(String childType) 
	{
		this.childType = childType;
	}

	public String getChildType() 
	{
		return childType;
	}
	public void setAmount(BigDecimal amount) 
	{
		this.amount = amount;
	}

	public BigDecimal getAmount() 
	{
		return amount;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("incomeId", getIncomeId())
            .append("userId", getUserId())
            .append("orderId", getOrderId())
            .append("type", getType())
            .append("incomeAmount", getIncomeAmount())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("childUserId", getChildUserId())
            .append("childType", getChildType())
            .append("amount", getAmount())
            .toString();
    }
}
